package cn.com.surker.production.service;

import cn.com.surker.production.entity.ProductionTransportSubsidy;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.com.surker.spring.RestResultDto;

import java.util.List;
import java.util.Map;

/**
* <p>
    * 运输合同补贴表 服务类
    * </p>
*
* @author admin
* @since 2024-12-05
*/
public interface TranSubsidyService extends IService<ProductionTransportSubsidy> {

    /**
     * 查询生产合同泵送补贴信息
     * @param contractId
     * @return
     */
    Map<String, List<ProductionTransportSubsidy>> findByContract(Long contractId);

    /**
     * 新增生产合同泵送补贴信息
     * @return
     */
    RestResultDto savePrice(ProductionTransportSubsidy pumpSubsidy);
    /**
     * 修改泵送补贴信息
     * @return
     */
    RestResultDto updatePrice(ProductionTransportSubsidy pumpSubsidy);

    /**
     * 禁用合同
     * @param id
     * @param status
     * @return
     */
    RestResultDto updateStatus(Long id, Integer status, String creator);

	/**
	 * 查询合同在该运输时刻的补贴
	 *
	 * @param tranConId
	 * @param carModel
	 * @param roadType
	 * @param overLimit
	 * @param tranTime
	 * @return
	 */
	List<ProductionTransportSubsidy> queryTranPrice(Long tranConId, Integer tranType, Integer carModel, Integer roadType, Integer overLimit, Double distance, String tranTime);
}
